Список содержимого

Vim tips

Links

Programming

gg=G Indent the whole file

Java .class files decompile

see tip 54, see also this script

  • First, download decompiler jad
    Put it somewhere on your PATH.
  • Then add to filetype.vim:
     
    augroup filetypedetect  
       au! BufRead,BufNewFile *.jad setfiletype java
       au! BufRead,BufNewFile *.class setfiletype class
    augroup END
    
  • Create in ftplugin a class.vim with
    silent %!jad.exe -noctor -ff -i -p %
    set readonly
    set ft=java
    normal gg=G
    set nomodified 

Common

:%s/ / global replace

:%s/\*.*\*/\*\0\*

change *something* to

 **something**

:num1;num2 for lines from num1 to num2

‘. jump to last modification

Windows

CTRL-Q acts as CTRL-V in default (UNIX) configuration

 
projects/vim_tips.txt · Последние изменения: 2007/04/12 21:43 anton
 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki